class UserModel {
  final String? nickName;
  final String? phonenumber;
  final String? sex;
  final String? avatar;
  final String? email;

  UserModel({
    this.nickName,
    this.phonenumber,
    this.sex,
    this.avatar,
    this.email,
  });

  factory UserModel.fromJson(Map<String, dynamic> json) {
    return UserModel(
      nickName: json['nickName'],
      phonenumber: json['phonenumber'],
      sex: json['sex'],
      avatar: json['avatar'],
      email: json['email'],
    );
  }

  Map<String, dynamic> toJson() {
    return {
      'nickName': nickName,
      'phonenumber': phonenumber,
      'sex': sex,
    };
  }
} 